package com.main;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.config.MyConfig;
import com.controller.UseFunService;

public class Test {
public static void main(String[] args) {

	AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MyConfig.class);
	UseFunService useFunService = ac.getBean(UseFunService.class);
	useFunService.sayHello("rooster");
	ac.close();
}

}
